package com.bida.service;

import com.bida.domain.dto.DishDTO;
import com.bida.domain.dto.DishPageQueryDTO;
import com.bida.domain.po.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bida.domain.vo.DishVO;
import com.bida.result.PageResult;
import com.bida.result.Result;

import java.util.List;

/**
 * <p>
 * 菜品 服务类
 * </p>
 *
 * @author ly
 * @since 2024-09-06
 */
public interface IDishService extends IService<Dish> {

    Result<PageResult> getDishInfoPage(DishPageQueryDTO dishPageQueryDTO);

    Result insertDishInfo(DishDTO dishDTO);

    Result deleteDishInfoByIds(List<Long> ids);

    Result updateDishInfo(DishDTO dishDTO);

    Result<DishVO> getDishInfoById(Long id);

    Result<List<Dish>> getDishListByCategoryId(Long categoryId);

    Result updateStatusById(Integer status, Long id);



    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
